package com.mazaiting.auth.security.core.userdetails.base;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * 用户详情基类
 *
 * @author mazaiting
 * @create_time 2022/9/27 00:11
 */
@Setter
@Getter
public abstract class BaseUserDetails implements UserDetails {

    /**
     * 用户名
     */
    protected String username;

    /**
     * 扩展字段：认证身份标识，枚举值如下：
     *
     * @see com.mazaiting.auth.enums.AuthenticationIdentityEnum
     */
    protected String authenticationIdentity;

    /**
     * 刷新 token 类型
     * @see com.mazaiting.auth.enums.RefreshTypeEnum
     */
    protected String refreshType;

}
